package com.tllq.zhongkang.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tllq.zhongkang.entity.MemCard;
import com.tllq.zhongkang.mapper.MemCardMapper;
import com.tllq.zhongkang.service.MemCardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class MemCardServiceImpl extends ServiceImpl<MemCardMapper, MemCard> implements MemCardService {

    @Autowired
    MemCardMapper memCardMapper;

    @Override
    public List<MemCard> findByNextId(Integer nextId) {
        return memCardMapper.findByNextId(nextId);
    }

    @Override
    public List<MemCard> findByTime(String startTime, String endTime) {
        return memCardMapper.findByTime(startTime,endTime);
    }
}
